package com.chaopei.consumer_feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import java.util.logging.Logger;

@SpringBootApplication
//指定当前服务为消费者(能够获取其它子应用提供的服务)
@EnableFeignClients
//@EnableEurekaClient
//@EnableDiscoveryClient
public class ConsumerFeignApplication {
  static Logger log = Logger.getLogger("consumer");
    public static void main(String[] args) {
        SpringApplication.run(ConsumerFeignApplication.class, args);
        //log.info("consumer已启动!");
        log.info("consumer已启动!");
    }

}
